package ylg.com.cn.youtube.main.fragment_user;

import ylg.com.cn.youtube.BasePresenter;
import ylg.com.cn.youtube.BaseView;
import ylg.com.cn.youtube._data.User;

/**
 * Created by MyPC on 2017/1/11.
 */
public class UserPageContract {
    interface Presenter extends BasePresenter {
        // 登录
        void login(String name, String password);
    }
    public interface View extends BaseView<Presenter> {
        /* presenter 把用户信息传给view(fragment)*/
        void showUser(User user);
        /* 登录中 */
        void onLoginProgress();
        /*登录失败*/
        void onLoginError(String message);
    }
}
